[delphi]在一个DTGRID中显示3个COMBOBOXselect条件的数据

来源:百度知道 编辑:UC知道 时间:2024/06/04 07:44:00
3个COMBOBOXselect是用or连接 可一实现不
怎么实现3个COMBOBOX用OR连接的数据在同一个DTGRID显示
case combobox.itemindex of
0
1
2
怎么设置啊 这样可以实现3个combobox中都根据编号查询吗

你的问题我基本理解为,你需要根据combobox来设置查询条件。

case combobox.itemindex of
0:
1:
2:
来设置不同的SQL语句
你的提问方式很有问题,我也只能这么回答了。

select * from table where t1='''+combobox1.text+''' or t2='''+combobox2.text+''' or t3='''+combobox3.text+'''';